package com.edu.study.base.stuQuestionOption.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 试题选项内容对象 stu_question_option
 *
 * @author jjt
 * @date 2021-04-02
 */
public class StuQuestionOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 选项ID */
    @Excel(name = "选项ID")
    private String optionId;

    /** 题库表ID */
    @Excel(name = "题库表ID")
    private Long questionLibraryId;

    /** 所属业务，1：课程， 2 题卷 */
    private String belongBussId;

    /** 选项内容 */
    @Excel(name = "选项内容")
    private String optionContent;

    /** 内容类型 */
    @Excel(name = "内容类型")
    private String optionContentType;

    /** 选项内容1 */
    @Excel(name = "选项内容1")
    private String optionContentOne;

    /** 内容1类型 */
    @Excel(name = "内容1类型")
    private String optionContentOneType;

    /** 内容序号 */
    @Excel(name = "内容序号")
    private String optionContentSortNum;

    /** 是否为答案 */
    @Excel(name = "是否为答案")
    private String isAnswer;

    private Long answerSort;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;

    @Excel(name = "选项音频")
    private String optionAudioUrl;
    public String getOptionAudioUrl() {
        return optionAudioUrl;
    }
    public void setOptionAudioUrl(String optionAudioUrl) {
        this.optionAudioUrl = optionAudioUrl;
    }


    public String getBelongBussId() {
        return belongBussId;
    }

    public void setBelongBussId(String belongBussId) {
        this.belongBussId = belongBussId;
    }

    public void setOptionId(String optionId)
    {
        this.optionId = optionId;
    }

    public String getOptionId()
    {
        return optionId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getQuestionLibraryId() {
        return questionLibraryId;
    }

    public void setQuestionLibraryId(Long questionLibraryId) {
        this.questionLibraryId = questionLibraryId;
    }

    public void setOptionContent(String optionContent)
    {
        this.optionContent = optionContent;
    }

    public String getOptionContent()
    {
        return optionContent;
    }
    public void setOptionContentType(String optionContentType)
    {
        this.optionContentType = optionContentType;
    }

    public String getOptionContentType()
    {
        return optionContentType;
    }
    public void setOptionContentOne(String optionContentOne)
    {
        this.optionContentOne = optionContentOne;
    }

    public String getOptionContentOne()
    {
        return optionContentOne;
    }
    public void setOptionContentOneType(String optionContentOneType)
    {
        this.optionContentOneType = optionContentOneType;
    }

    public String getOptionContentOneType()
    {
        return optionContentOneType;
    }
    public void setOptionContentSortNum(String optionContentSortNum)
    {
        this.optionContentSortNum = optionContentSortNum;
    }

    public String getOptionContentSortNum()
    {
        return optionContentSortNum;
    }
    public void setIsAnswer(String isAnswer)
    {
        this.isAnswer = isAnswer;
    }

    public String getIsAnswer()
    {
        return isAnswer;
    }

    public Long getAnswerSort() {
        return answerSort;
    }

    public void setAnswerSort(Long answerSort) {
        this.answerSort = answerSort;
    }

    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("optionId", getOptionId())
            .append("questionLibraryId", getQuestionLibraryId())
            .append("optionContent", getOptionContent())
            .append("optionContentType", getOptionContentType())
            .append("optionContentOne", getOptionContentOne())
            .append("optionContentOneType", getOptionContentOneType())
            .append("optionContentSortNum", getOptionContentSortNum())
            .append("isAnswer", getIsAnswer())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateDate", getUpdateDate())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
